package utils

import (
	"github.com/go-redis/redis/v8"
	"go.uber.org/zap"

	"2106a-zg5/demo/user/user_srv/global"
)

func init() {
	global.RDB = redis.NewClient(&redis.Options{
		Addr: global.UserConfig.Redis,
		DB:   1,
	})
	zap.S().Info("Redis successfully")
}
